home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
language
/
dl_exsrc.zoo
/
makefile
< prev
next >
Wrap
Makefile
|
1994-07-05
|
1KB
|
44 lines
CFLAGS = -O
TARGET = libextra.a
AR = ar
CPP = cpp
CPPFLAGS = -P -Wno-bad-chars -Wno-bad-concat-tokens
OBJS = \
bdos.o catch.o ctlcnv.o fsize.o getbp.o getcook.o getosver.o \
lalloc.o lmemmove.o lread.o lwrite.o makepath.o memavail.o \
memicmp.o msize.o perrorf.o pfindfil.o regerror.o splitpth.o \
stradj.o strirpl.o stristr.o strnset.o strpcpy.o strpos.o \
strrpbrk.o strrpl.o strrpos.o strset.o strtrim.o subnstr.o \
substr.o swab.o timer.o wildcard.o
REG_OBJS = \
rlmemcpy.o rlmemmove.o rmemicmp.o rstradj.o rstristr.o \
rstrnset.o rstrpcpy.o rstrpos.o rstrrpbrk.o rstrrpos.o rstrset.o \
rstrtrim.o rsubnstr.o rsubstr.o
$(TARGET): $(OBJS) $(REG_OBJS)
$(AR) rv $@ $?
libsort $@
clean:
rm $(OBJS) $(REG_OBJS) $(TARGET)
$(OBJS): extras.h
$(REG_OBJS): reghack.cpp
$(CPP) $(CPPFLAGS) -DTARGET=$* reghack.cpp $*.s
$(CC) $(CFLAGS) -c $*.s
$(RM) $*.s
# Routines that call stack-pointer-altering functions like Super() or
# longjmp() will need frame pointers.
getcook.o: getcook.c
cc -c $(CFLAGS) +O-u getcook.c
getosver.o: getosver.c
cc -c $(CFLAGS) +O-u getosver.c
timer.o: timer.c
cc -c $(CFLAGS) +O-u timer.c
catch.o: catch.c
cc -c $(CFLAGS) +O-u catch.c